/*
 * @(#) OrderStateUtil.java 2013-7-25 下午4:13:46
 *
 * Copyright 2013 Rockwell Automation, Inc. All rights reserved.
 * Rockwell Automation PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package com.osi.mes.pm.util;

import java.util.Vector;

import com.osi.mes.pm.constants.IOrderState;

public class OrderStateUtil
{
	static Vector<String> orderStates = new Vector<String>();
	
	static
	{
		orderStates.add(IOrderState.ABORTED);
		orderStates.add(IOrderState.CANCELED);
		orderStates.add(IOrderState.CLOSED);
		orderStates.add(IOrderState.CREATED);
		orderStates.add(IOrderState.FINISHED);
		orderStates.add(IOrderState.PUBLISHED);
		orderStates.add(IOrderState.STARTED);
	}
	
	/**
	 * 获得所有工单状态
	 */
	public static Object[] getAllOrderStates()
	{
		return orderStates.toArray();
	}
}
